Skip to content

feat(boards/3dr/ctrl-n1): configure barometer as DPS368#27854

Merged
dirksavage88 merged 1 commit into
PX4:mainfrom
TOTON95:pr-3dr-cn1-dps368
Jul 16, 2026
Merged

feat(boards/3dr/ctrl-n1): configure barometer as DPS368#27854
dirksavage88 merged 1 commit into
PX4:mainfrom
TOTON95:pr-3dr-cn1-dps368

Conversation

@TOTON95

@TOTON95 TOTON95 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

3DR Control-N1 uses the DPS368 barometer variant (not DPS310) on the internal SPI6 bus. Wire the existing dps310 driver's DPS368 mode so the device is probed and registered with the correct device type.

  • rc.board_sensors: pass -8 to dps310 start to select the DPS368 variant
  • spi.cpp: change the SPI6 baro device type from DRV_BARO_DEVTYPE_DPS310 to DRV_BARO_DEVTYPE_DPS368 so the bus scan matches the driver's request

Verified on hardware: boot log shows dps310 #0 on SPI bus 6, and listener sensor_baro reports device_id: 0x77 = DPS368, bus 6) with valid pressure/temperature readings. Also confirmed the compiled px4_spi_buses table in the built ELF carries devtype_driver = 0x77 rather than the old 0x68 (DPS310).

@github-actions github-actions Bot added kind:feature Request or change that adds new functionality. scope:boards Board-specific changes or hardware definitions. labels Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

🔎 FLASH Analysis

px4_fmu-v5x [Total VM Diff: -8 byte (-0 %)]
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +55  [ = ]       0    .debug_abbrev
  -0.0%      -2  [ = ]       0    .debug_info
  -0.0%      -5  [ = ]       0    .debug_line
    +100%      +2  [ = ]       0    [Unmapped]
    -0.0%      -7  [ = ]       0    [section .debug_line]
  +0.1%      +8  [ = ]       0    [Unmapped]
  -0.0%      -8  -0.0%      -8    .text
     +44%      +4   +44%      +4    g_nullstring
    -0.0%     -12  -0.0%     -12    [section .text]
  +0.0%     +48  -0.0%      -8    TOTAL

px4_fmu-v6x [Total VM Diff: -16 byte (-0 %)]
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +55  [ = ]       0    .debug_abbrev
  -0.0%      -2  [ = ]       0    .debug_info
  -0.0%     -13  [ = ]       0    .debug_line
    [DEL]      -6  [ = ]       0    [Unmapped]
    -0.0%      -7  [ = ]       0    [section .debug_line]
  +0.3%     +16  [ = ]       0    [Unmapped]
  -0.0%     -16  -0.0%     -16    .text
   -30.8%      -4 -30.8%      -4    g_nullstring
    -0.0%     -12  -0.0%     -12    [section .text]
  +0.0%     +40  -0.0%     -16    TOTAL

Updated: 2026-07-09T23:49:55

@dirksavage88
dirksavage88 merged commit 0542e1f into PX4:main Jul 16, 2026
73 checks passed
@TOTON95

TOTON95 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Thank you @dirksavage88 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:feature Request or change that adds new functionality. scope:boards Board-specific changes or hardware definitions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants